package com.ftg.learn.pattern.singleton;

/**
 * 单例设计模式 的饿汉模式
 * @author kangjx
 * @createTime 2022/8/9
 */
public class Sinleton1 {

    private static Sinleton1 s = new Sinleton1();

    private Sinleton1(){
        System.out.println("构造方法 ");
    }

    public static Sinleton1 getInstance(){
        return s;
    }

}
